import request from "@/utils/request";
import qs from "qs";

//  01、长治发稿积分统计-首页
export function customizeIndex(data) {
  return request({
    url: "/customize/fgjf/index",
    method: "POST",
    headers: { "content-type": "application/x-www-form-urlencoded" },
    params: data,
  });
}

// 02、长治发稿积分统计-月积分走势图显示
export function customizeScoreMonthlyTrend(data) {
  return request({
    url: "/customize/fgjf/scoreMonthlyTrend",
    method: "POST",
    headers: { "content-type": "application/x-www-form-urlencoded" },
    params: data,
  });
}

// 03、 各部门发稿积分统计  下钻  单个部门
export function customizeDepNameDetail(data) {
  return request({
    url: "/customize/fgjf/companyNewsPointsView",
    method: "POST",
    params: data,
  });
}

// 测试接口
// 03、 各部门发稿积分统计  下钻  单个部门
export function customizedeptList(data) {
  return request({
    url: "/customize/fgjf/companyNewsPoints/deptList",
    method: "POST",
    params: data,
  });
}

// 03、 各部门发稿积分统计  下钻  单个部门
// export function customizedeptList(data) {
//   return request({
//     url: "/fgjf/companyNewsPoints",
//     method: "POST",
//     params: data,
//   });
// }
// 2.0 获取模块2 点击后的 6个图表
export function fourChannelCount(data) {
  return request({
    url: "/customize/fgjf/fourChannelCount",
    method: "POST",
    params: data,
  });
}
// 2.1 六大栏目统计
export function fourViewChannelCountSix(data) {
  return request({
    url: "/customize/fgjf/fourViewChannelCount",
    method: "POST",
    params: data,
  });
}
// 2.2 媒体报道统计
export function fourViewChannelCountMt(data) {
  return request({
    url: "/customize/fgjf/mediaCoverageCountView",
    method: "POST",
    params: data,
  });
}
// export function customizedeptList(data) {
//   return request({
//     url: "/fgjf/mediaCoverageCountView",
//     method: "POST",
//     params: data,
//   });
// }
